import request from '@/utils/request';
import {addPlatDataInter, changePlatDataInter, getPlatuserInter, resetPwdInter} from "@/api/interface/interFace";

export function getPlatuser(query:getPlatuserInter) {
    return request({
        url: '/jsUser/page',
        method: 'get',
        params: query,

    });
}

export function changePlat(query:changePlatDataInter) {
    return request({
        url: '/jsUser',
        method: 'put',
        data: query,

    });
}
export function resetPwd(query:resetPwdInter){
    return request({
        url: '/jsUser/reset',
        method: 'post',
        data: query,
    });
}
export function addPlatFn(query:addPlatDataInter){
    return request({
        url: '/jsUser',
        method: 'post',
        data: query,
    });
}

